package com.wx.activitys.drp.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wx.activitys.drp.mapper.BAdminMapper;
import com.wx.activitys.drp.model.BAdmin;
import com.wx.activitys.drp.service.AdminService;
@Service("/adminService")
public class AdminServiceImpl implements AdminService {
   @Autowired
   private BAdminMapper adminMapper;
	
	@Override
	public List<BAdmin> selectAdminByMap(Map<String, Object> parameter) {

		return adminMapper.selectAdminByMap(parameter);
	}

	@Override
	public int insertAdmin(BAdmin admin) {
		// TODO Auto-generated method stub
		return adminMapper.insertAdmin(admin);
	}

	@Override
	public int updateAdmin(BAdmin admin) {
		// TODO Auto-generated method stub
		return adminMapper.updateAdmin(admin);
	}

	@Override
	public int deleteAdminByPrimaryKey(int id) {
		// TODO Auto-generated method stub
		return adminMapper.deleteAdminByPrimaryKey(id);
	}

	@Override
	public BAdmin selectByPirmaryKey(int id) {
		// TODO Auto-generated method stub
		return adminMapper.selectByPrimaryKey(id);
	}

	@Override
	public int countAdminByMap(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return adminMapper.countAdminByMap(parameter);
	}
	@Override
	public int updateAdminByEntity(BAdmin admin) {
		// TODO Auto-generated method stub
		return adminMapper.updateAdminByEntity(admin);
	}

}
